package com.ruoyi.keno.enums;

import java.util.HashMap;
import java.util.Map;

public enum AreaEnums {

//    加拿大("canada", 3),
//    澳洲("australia",2),
//    加拿大西("canada_west",4),
//    斯洛伐克("slovakia",5),
    LB45("lb45",3),
    LB60("lb60",2),
    LB90("lb90",1)
    ;

    private String  cityName;
    private Integer cityCode;

    AreaEnums(String cityName, int cityCode) {
        this.cityName = cityName;
        this.cityCode = cityCode;
    }

    public static String getCityNameByCode(int cityCode) {
        for (AreaEnums area : AreaEnums.values()) {
           if(area.cityCode==cityCode) {
               return area.cityName;
           }
        }
        return null;
    }


    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public Integer getCityCode() {
        return cityCode;
    }

    public void setCityCode(Integer cityCode) {
        this.cityCode = cityCode;
    }
}
